<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
    <script>
        window.onload = function () {
            const {createApp, ref} = Vue

            createApp({
                setup() {
                    const message = ref('Hello vue!')
                    const url = ref('images/1.jpg')

                    let images = [
                        "images/1753146431514.jpg",
                        "images/1753146457972.jpg",
                        "images/1753146487402.jpg",
                        "images/1753146516683.jpg",
                    ];
                    let index = 0
                    setInterval(function (){
                        url.value = images[++index]
                    },3000)

                    return {
                        message, url
                    }
                }
            }).mount('#app')
        }
    </script>
</head>
<body>
<div id="app">
    <img :src="url">
    <button @click="add()">添加</button>
</div>

</body>
</html>
